angular.module("myApp")
.controller("byqController", ["$scope", function($scope){
	$scope.byq = function(e){
		var walk_main1 = document.querySelectorAll(".walk_main2")[0],
			walk_main2 = document.querySelectorAll(".walk_main2")[1],
			walk_main3 = document.querySelectorAll(".walk_main1_span")[0],
			walk_main4 = document.querySelectorAll(".walk_main1_span")[1];
		if(e.target.id =="one"){
			walk_main1.style.display = "block";
			walk_main2.style.display = "none";
			$scope.byq1 = {
				"color":"#41C074",
				"font-weight":"700",
				"display":"inline-block",
				"border-bottom":"0.01rem solid #41C074",
				"height":"0.58rem"
			}
			walk_main4.style.color="#333";
			walk_main4.style.border="none";
			walk_main4.style.fontWeight="100";
		}
		else if(e.target.id =="two"){
			walk_main1.style.display = "none";
			walk_main2.style.display = "block";
			$scope.byq2 = {
				"color":"#41C074",
				"display":"inline-block",
				"font-weight":"700",
				"border-bottom":"0.01rem solid #41C074",
				"height":"0.58rem"
			}
			walk_main3.style.color="#333";
			walk_main3.style.border="none";
			walk_main3.style.fontWeight="100";
		}	
	}
	
}])
